#ifndef EMAILWIDGET_H
#define EMAILWIDGET_H

#include <QWidget>
#include "mytypes.h"
#include <QStandardItemModel>
#include <QGridLayout>
#include <QTableView>
#include <QPlainTextEdit>
#include <QTabWidget>
#include <QVBoxLayout>
#include <QSpacerItem>
namespace Ui {
class EmailWidget;
}

class EmailWidget : public QWidget
{
    Q_OBJECT

public:
    explicit EmailWidget(QWidget *parent = nullptr);
    ~EmailWidget();

    void Init_Config(QMap<int,QVector<QPair<QString,QStringList>>>& pstruct);
    void SetCurWidget(int i);

    void Init_Ui();
public slots:
    void doMouseTrackTip(QModelIndex index);

private:
    Ui::EmailWidget *ui;
    QVector<QVector<QStandardItemModel*>> _models;
    QVector<QVector<QTableView*>>         _views;
    QVector<QVector<QPlainTextEdit*>>     _plains;
};

#endif // EMAILWIDGET_H
